import axios from "../utils/http";
import store from "../store";

export function fetchPermission() {
  return axios({
    url: `/api/permission`,
    method: "get",
    params: { token: store.state.Token }
  });
}

export function login(params) {
  return axios({
    url: `/api/login`,
    method: "get",
    params: params
  });
}
